home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
program
/
eflibpt4.zip
/
DEMO
/
TESTING
/
ARRAYMOV.PAS
next >
Wrap
Pascal/Delphi Source File
|
1996-08-16
|
1KB
|
35 lines
{ Borland Pascal Extended Function Library - EFLIB (C) Johan Larsson, 1996
Testing; element moving and pulling within array lists
EFLIB IS PROTECTED BY THE COPYRIGHT LAW AND MAY NOT BE COPIED, SOLD OR
MANIPULATED. FOR MORE INFORMATION, SEE PROGRAM MANUAL! THIS DEMONSTRAT-
ION PROGRAM MAY FREELY BE USED AND DISTRIBUTED. }
uses EFLIBDAT, EFLIBTXT;
const TestSize = 15;
var MyArray : ArrayListObjectType; Data : string;
Index : word;
begin
with MyArray do begin
Initialize (TestSize, 11);
{ Add some elements }
for Index := 1 to 10 do begin
Data := StringNumber(Index, 0, 0);
Add (Data); end;
Erase (1); Erase (2); Erase(3); PullElements;
Erase(4);
{ Display usage status }
for Index := 1 to Capacity do
if IsUsed(Index) then WriteLn (String(ElementPointer(Index)^))
else WriteLn ('*NOT USED*');
Intercept;
end;
end.